<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/main.css" rel="stylesheet" type="text/css">
<title>主页面</title>
</head>
<body>
<div class="header">
    <h1 class="logo"><a href="#">通讯录</a></h1>
    <ul class="register">
    	<li><form action="${pageContext.request.contextPath}/Select.action" method="post">
            <input type="text" class="input_search" name="input_search" placeholder="请输入姓名或手机号">
            <input type="submit" value="搜索" class="search_submit">
        </form></li>
        <li>当前用户</li>
        <li>${sessionScope.username}</li>
        <li><a href="${pageContext.request.contextPath}/LoginoutAction.action">退出</a></li>
    </ul>
</div>
<div class="content">
    <div class="content_in">
        <div class="content_left">
        
            <div class="content_list">
                <ul>
                    <li class="list_title">
                        <div class="list_check"></div>
                        <div class="list_number">编号</div>
                        <div class="list_name">联系人</div>
                        <div class="list_phone">号码</div>
                        <div class="list_change"></div>
                    </li>
                </ul>
                
                <c:forEach items="${list}" var="list">
                <ul>
                    <li class="list_title">
                        <!-- <div class="list_check"><a href="">删除</a></div> -->
                        <div class="list_number"><a href="${pageContext.request.contextPath}/GetOneAction.action?id=${list.id}">${list.id}</a></div>
                        <div class="list_name">${list.name}</div>
                        <div class="list_phone">${list.phone}</div>
                        <div class="list_change"><a href="${pageContext.request.contextPath}/editSelectOne.action?id=${list.id}">修改</a></div>
                        <div class="list_delete"><a href="${pageContext.request.contextPath}/DeleteAction.action?id=${list.id}">删除</a></div>
                    </li>
                </ul>
                </c:forEach>
            </div>
            <div class="content_button">
                <span><a href="${pageContext.request.contextPath}/ToAction.action">添加</a></span>
            </div>
          
        </div>
        <div class="content_right">
            <div class="content_detail">
                <div class="content_img"><img src="upload/${sessionScope.al.image}" height="200px" width="200px"></div>
                <div class="detail_name">姓名：
                    ${sessionScope.al.name}
                </div>
                <div class="detail_phone">手机：
                    ${sessionScope.al.phone}
                </div>
                <div class="detail_relation">关系：
                    ${sessionScope.al.relation}
                </div>
                <div class="detail_email">邮箱：
                    ${sessionScope.al.e_mail}
                </div>
                <div class="detail_address">地址：
                    ${sessionScope.al.address}
                </div>
                <div class="detail_company">公司：
                    ${sessionScope.al.company}
                </div>
            </div>
        </div>
    </div>
</div>
<div class="mask_bg"></div>
<div class="mask"></div>
</body>
</html>